<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="<c:url value='../assets/css/bootstrap.css' />" >
<link rel="stylesheet" type="text/css" href="<c:url value='../assets/css/jquery-ui.css' />" >
<link rel="stylesheet" type="text/css" href="<c:url value='../assets/css/styles.css' />" >
<script src="../assets/js/lib/jquery-1.8.2.min.js"></script>
<script src="../assets/js/lib/jquery-ui-1.9.1.custom.min.js"></script>
<script src="../assets/js/lib/bootstrap.min.js"></script>
<title>Upload</title>
<link rel="icon" type="image/ico" href="../assets/img/favicon.ico"/>
</head>
<body>
    <%@ include file="../../menu.html" %>
    <br>
    <br>
    <br>
    <form id="uploadForm" action="/s3/upload.do" enctype='multipart/form-data' method="post">
        <input id="bucketPath" type="text" name="bucket_path" value="globant-emr"/>
        <input id="file" type="file" name="file" value='file' />
        <input type="submit"/>
    </form>
</body>

<script type='text/javascript'>
 $("#uploadForm").submit(function() {          
    var bucketPath= $("#bucketPath").val();
    $("#bucketPath").attr('name','bucketPath:'+bucketPath);
    return true;
});
</script>
</html>
